/**
 * Created by liubin on 2017/5/2.
 */


var DzpkChip = cc.Sprite.extend({

    ctor : function(){
        this._super();
        this.setAnchorPoint(cc.p(0.5, 0.5));
        this.setChipLevel(1);
    },

    setChipLevel : function(level){
        if(level < 1 || level > 3){
            return;
        }
        this.setSpriteFrame("chiplevel"+ level + ".png");
    }


});